package com.shunli.cterminal.model.res;

import com.examples.core.res.BaseRespVO;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @ClassName: TemplateInfoVO
 * @Description: TODO
 * @Author: DAIYALU
 * @Date: 2024/6/13
 * @Version: 1.0
 */
@Data
public class TemplateInfoVO extends BaseRespVO {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(description = "模板名称", example = "模板名称")
    private String name;

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "渠道商品ID")
    private Long channelGoodsId;

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "商品ID")
    private Long goodsId;

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "商品名称")
    private String goodsName;

    @Schema(description = "背景颜色")
    private String backgroundColor;

    @Schema(description = "主题颜色")
    private String themeColor;

    @Schema(description = "发货方式 0-自动发货 1-手动发货")
    private String shipWay;

    @Schema(description = "结果页Tab 0-关闭 1-开启")
    private String resultPageTab;

    private String remark;

    @Schema(description = "封面图")
    private String coverImg;

    private String img;

    @Schema(description = "样式编码 编号\n" +
            "01-落地页\n" +
            "02-集合页\n" +
            "03-动效页\n" +
            "04-支付页\n" +
            "05-引导页\n" +
            "06-结果页\n" +
            "07-红包\n" +
            "08-活动")
    private String code;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long groupId;

    @Schema(description = "分组名称")
    private String groupName;

    @Schema(description = "分组路径")
    private String groupNames;

    private String status;
    @Schema(description = "标签")
    private String templateLabel;

    private String skuId;

    private List<TemplateDetailVO> details;

    @Schema(description = "AB测试 0-关闭 1-开启")
    private Integer abTest;
}
